/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package players;

public enum PlayersEnum {
    Empty("Empty", "http://db.tt/KrsWeyjG", "http://db.tt/35kVh6pb"),
    Abbiati("Abbiati", "http://db.tt/8M1LM4Ut", "http://db.tt/LM5sYljs"),
    Amerlia("Amerlia", "http://db.tt/qqBoYuIj", "http://db.tt/1DGTciFl"), 
    Antonini("Antonini", "http://db.tt/3jBDBZ1D", "http://db.tt/BdxFaVa7"),
    Aquilani("Aquilani", "http://db.tt/oMYwvkxR", "http://db.tt/Cku338i9"),
    Beckham("Beckham", "http://db.tt/V33OUHyQ", "http://db.tt/Vxt9gabU"), 
    C_Ronaldo("C.Ronaldo", "http://db.tt/uddj4FY2", "http://db.tt/4ygAYRru"), 
    Cassano("Cassano","http://db.tt/wVXJgK5V", "http://db.tt/HuLYUC4u"), 
    D_Alves("D.Alves", "http://db.tt/dDKBc6Y4", "http://db.tt/gUsR4R9I"), 
    D_Silva("D.Silva", "http://db.tt/JbmzysdC", "http://db.tt/ptqBvzX7"), 
    Deco("Deco", "http://db.tt/03LBuB4C", "http://db.tt/80B7LEF9"),
    Huntelaar("Huntelaar", "http://db.tt/gRaa7u6r", "http://db.tt/avp8zfPr"), 
    Ibrahimovic("Ibrahimovic", "http://db.tt/HdPWFBxg", "http://db.tt/7tS7FQd0"), 
    Kaka("Kaka", "http://db.tt/L5nN6Wyh", "http://db.tt/RwAglpL9"), 
    Pirlo("Pirlo", "http://db.tt/gaVgNF4Q", "http://db.tt/NZCksDra"), 
    Ronaldino("Ronaldino", "http://db.tt/bwIGR1vl", "http://db.tt/NZCksDra"), 
    Ronaldo("Ronaldo", "http://db.tt/v4WvSH4u", "http://db.tt/5Vw90m0O"), 
    Seedorf("Seedorf", "http://db.tt/Pw35F2MQ", "http://db.tt/Zghq7diS"), 
    V_Boomel("V.Boomel", "http://db.tt/sGgI5g8P", "http://db.tt/m5k1KWrC"), 
    Yepes("Yepes", "http://db.tt/TzZKrxi5", "http://db.tt/m5k1KWrC"), 
    Zidane("Zidane", "http://db.tt/6TkjjZhY", "http://db.tt/r9gvOXwA");

    private String name;
    private String cardURL;
    private String playerImageURL;
    
    PlayersEnum(String name, String cardURL, String playerImageURL){
        this.name = name;
        this.cardURL = cardURL;
        this.playerImageURL = playerImageURL;
    }
    
    public String getName(){return name;}
    public String getCardURL(){return cardURL;}
    public String getPlayerImageURL(){return playerImageURL;}
    
    public static String getCardURLByName(String name){
        for(PlayersEnum p: PlayersEnum.values())
            if(p.getName().equals(name))
                return p.getCardURL();
        return null;
    }
    
    public static String getPlayerImageURLByName(String name){
        for(PlayersEnum p : PlayersEnum.values())
            if(p.getName().equals(name))
                return p.getPlayerImageURL();
        return null;
    }
}
